# !/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :user.py
# @Time      :2022/6/8 0008 22:02
# @Author    :何胜利
from flask_restful import fields

user_fields = {
    "uid": fields.Integer,
    "user_name": fields.String,
    "gender": fields.Integer,
    "profile_photo": fields.String,
    "create_date": fields.DateTime,
    "introduction": fields.String,
    "article_count": fields.Integer,
    "following_count": fields.Integer,
    "fans_count": fields.Integer,
    "like_count": fields.Integer,
    "read_count": fields.Integer,
    "account": fields.String,
    "email": fields.String,
}

channel_fields = {
    "cid": fields.Integer,
    "cname": fields.String,
    "ctime": fields.DateTime,
    "sequence": fields.Integer,
}

news_fields = {
    'user_id':fields.Integer,
    'nid':fields.Integer,
    'title':fields.String,
    'cover': fields.String,
    'content': fields.String,
    'comment_count': fields.Integer,
    'good_count': fields.Integer,
    'ctime': fields.DateTime,
    'is_follow': fields.Boolean,
    'is_like': fields.Boolean,
    "is_collection": fields.Boolean,
}

comment_fields = {
    "cmid": fields.Integer,
    "user_id": fields.Integer,
    "article_id": fields.Integer,
    "parent_id": fields.Integer,
    "like_count": fields.Integer,
    "reply_count": fields.Integer,
    "content": fields.String,
    "ctime": fields.DateTime,
}
